Optimal. Leaf size=94 \[ \frac {13-6 x}{506 \left (2 x^2-x+3\right )}-\frac {13}{968} \log \left (2 x^2-x+3\right )+\frac {13}{968} \log \left (5 x^2+3 x+2\right )+\frac {241 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{484 \sqrt {31}} \]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {974, 1072, 634, 618, 204, 628} \begin {gather*} \frac {13-6 x}{506 \left (2 x^2-x+3\right )}-\frac {13}{968} \log \left (2 x^2-x+3\right )+\frac {13}{968} \log \left (5 x^2+3 x+2\right )+\frac {241 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{484 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 974
Rule 1072
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right )^2 \left (2+3 x+5 x^2\right )} \, dx &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {\int \frac {-1892-1067 x+330 x^2}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx}{5566}\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {\int \frac {-3509+72358 x}{3-x+2 x^2} \, dx}{1346972}-\frac {\int \frac {-150282-180895 x}{2+3 x+5 x^2} \, dx}{1346972}\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {241 \int \frac {1}{3-x+2 x^2} \, dx}{22264}-\frac {13}{968} \int \frac {-1+4 x}{3-x+2 x^2} \, dx+\frac {13}{968} \int \frac {3+10 x}{2+3 x+5 x^2} \, dx+\frac {69}{968} \int \frac {1}{2+3 x+5 x^2} \, dx\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {13}{968} \log \left (3-x+2 x^2\right )+\frac {13}{968} \log \left (2+3 x+5 x^2\right )+\frac {241 \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )}{11132}-\frac {69}{484} \operatorname {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}+\frac {241 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{484 \sqrt {31}}-\frac {13}{968} \log \left (3-x+2 x^2\right )+\frac {13}{968} \log \left (2+3 x+5 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 94, normalized size = 1.00 \begin {gather*} \frac {13-6 x}{506 \left (2 x^2-x+3\right )}-\frac {13}{968} \log \left (2 x^2-x+3\right )+\frac {13}{968} \log \left (5 x^2+3 x+2\right )-\frac {241 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{484 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (3-x+2 x^2\right )^2 \left (2+3 x+5 x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 117, normalized size = 1.24 \begin {gather*} \frac {73002 \, \sqrt {31} {\left (2 \, x^{2} - x + 3\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - 14942 \, \sqrt {23} {\left (2 \, x^{2} - x + 3\right )} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + 213187 \, {\left (2 \, x^{2} - x + 3\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) - 213187 \, {\left (2 \, x^{2} - x + 3\right )} \log \left (2 \, x^{2} - x + 3\right ) - 188232 \, x + 407836}{15874232 \, {\left (2 \, x^{2} - x + 3\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 78, normalized size = 0.83 \begin {gather*} \frac {69}{15004} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {241}{256036} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {6 \, x - 13}{506 \, {\left (2 \, x^{2} - x + 3\right )}} + \frac {13}{968} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {13}{968} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 77, normalized size = 0.82 \begin {gather*} \frac {69 \sqrt {31}\, \arctan \left (\frac {\left (10 x +3\right ) \sqrt {31}}{31}\right )}{15004}-\frac {241 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{256036}-\frac {13 \ln \left (2 x^{2}-x +3\right )}{968}+\frac {13 \ln \left (5 x^{2}+3 x +2\right )}{968}-\frac {\frac {66 x}{23}-\frac {143}{23}}{484 \left (x^{2}-\frac {1}{2} x +\frac {3}{2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 78, normalized size = 0.83 \begin {gather*} \frac {69}{15004} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {241}{256036} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {6 \, x - 13}{506 \, {\left (2 \, x^{2} - x + 3\right )}} + \frac {13}{968} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {13}{968} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.58, size = 96, normalized size = 1.02 \begin {gather*} -\frac {\frac {3\,x}{506}-\frac {13}{1012}}{x^2-\frac {x}{2}+\frac {3}{2}}-\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {13}{968}+\frac {\sqrt {31}\,69{}\mathrm {i}}{30008}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {13}{968}+\frac {\sqrt {31}\,69{}\mathrm {i}}{30008}\right )+\ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {13}{968}+\frac {\sqrt {23}\,241{}\mathrm {i}}{512072}\right )-\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {13}{968}+\frac {\sqrt {23}\,241{}\mathrm {i}}{512072}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.32, size = 102, normalized size = 1.09 \begin {gather*} \frac {13 - 6 x}{1012 x^{2} - 506 x + 1518} - \frac {13 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{968} + \frac {13 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{968} - \frac {241 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{256036} + \frac {69 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{15004} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________